//
//  CustomPresentationFirstViewController.swift
//  CustomTransitions
//
//  Created by fuyoufang on 2021/10/12.
//

import Foundation
import UIKit

class CustomPresentationFirstViewController: BaseFirstViewController {

    override func showSecond(sender: Any) {
        let secondViewController = CustomPresentationSecondViewController()
        
        let customPresentationController = CustomPresentationController(presentedViewController: secondViewController, presenting: self)
        secondViewController.transitioningDelegate = customPresentationController
        present(secondViewController, animated: true, completion: nil)
    }
}

